package com.fap.core.bo.define;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;

import org.springframework.web.context.WebApplicationContext;
import org.springframework.web.context.support.WebApplicationContextUtils;

public class BoDefineRepositoryServlet extends HttpServlet {

	private static final long serialVersionUID = 5035127441035967776L;

	@Override
	public void init() throws ServletException{
		WebApplicationContext wac = WebApplicationContextUtils.getRequiredWebApplicationContext(getServletContext());
		BoDefineRepository repository = (BoDefineRepository)wac.getBean("boDefineRepository");
		repository.registerAllBoDefine();
	}
}
